import request from '@/utils/request'

export function listtcWarring(query) {
  return request({
    url: '/tcWarring/list',
    method: 'get',
    params: query
  })
}

export function createtcWarring(data) {
  return request({
    url: '/tcWarring/create',
    method: 'post',
    data
  })
}

export function readtcWarring(data) {
  return request({
    url: '/tcWarring/get/' + data.fentryid,
    method: 'get'
  })
}

export function updatetcWarring(data) {
  return request({
    url: '/tcWarring/update',
    method: 'post',
    data
  })
}

export function deletetcWarring(data) {
  return request({
    url: '/tcWarring/delete/' + data.id,
    method: 'delete'
  })
}
